package com.yt.user.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "wx.pay")
public class WxPayConfig {
    /**
     * 微信支付商户号
     */
    private String mchId;
    
    /**
     * 微信支付API密钥
     */
    private String key;
    
    /**
     * 微信小程序appId
     */
    private String appId;
    
    /**
     * 微信支付API地址
     */
    private String apiUrl;
    
    /**
     * 是否启用沙箱环境
     */
    private boolean sandboxEnabled = false;
}